package model

import "gorm.io/gorm"

type Role struct {
	gorm.Model
	Name string `gorm:"type:varchar(20);comment:角色名称"`
}

type RoleWithUser struct {
	gorm.Model
	UserId int `gorm:"type:int"`
	RoleId int `gorm:"type:int"`
}

type Power struct {
	gorm.Model
	Router string `gorm:"type:varchar(50);comment:权限路由"`
}

type PowerWithRole struct {
	gorm.Model
	RoleId  int `gorm:"type:int"`
	PowerId int `gorm:"type:int"`
}
